﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SysUserMaintenance.aspx.cs" Inherits="App_System_Mst_SysUserMaintenance" Title="系统人员维护" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
    <script language="javascript">
    function delmessage(){
        return window.confirm("是否要删除该用户？");
    }
    function addmessage(){
        return window.confirm("是否要更新该用户的密码？");
    }
    </script>
    <div>
    <FONT COLOR="GREEN">缺少 系统人员编号，部门编号 的一览画面</FONT>
        <table class="table_border_bg">
            <tr>
                <td align="center">
                        <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" ForeColor="Red" align="center">
            <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtSysUserIdSel">
                <cc1:ComAbsParamsAttribute Parameter="系统人员编号" />
            </cc1:CheckRequiredAttribute>
        </cc1:ComValidator>
                                <cc1:ComValidator ID="ComValidator2" runat="server" CheckItems-Capacity="4" ForeColor="Red" align="center">
                                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtSysUserIdSel">
                                        <cc1:ComAbsParamsAttribute Parameter="系统人员编号" />
                                    </cc1:CheckRequiredAttribute>
                                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtPassWd">
                                        <cc1:ComAbsParamsAttribute Parameter="密码" />
                                    </cc1:CheckRequiredAttribute>
                                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtConfirmPassWd">
                                        <cc1:ComAbsParamsAttribute Parameter="确认密码" />
                                    </cc1:CheckRequiredAttribute>
                                </cc1:ComValidator>
                    </td>
            </tr>
        </table>
        <table width="100%">
            <tr>
                <td style="height: 65px">
                    <table class="table_border_line">
                        <tr>
			                <td align="left" colspan="4" >
			                <script language="javascript">
                                                (new TitleBar('SearchBar', '检索条件')).showBar();
                                </script>
			                </td>						
		                </tr>
                    </table>
                    <table class="table_border_line">
		                <tr>
			                <td style="width:90px">&nbsp;</td>
			 				<td style="width:120px; white-space:nowrap" align="left">系统人员编号</td>	
			 				<td width="52%" align="left">
                                 <asp:TextBox ID="txtSysUserIdSel" runat="server" MaxLength="16"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;</td>
		                 </tr>		
                    </table>

                </td>
                <td width="15%">&nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSelect" runat="server" Text="检索" CssClass="button" Height="21px" Width="61px" OnClick="btnSelect_Click" />
                </td>
            </tr>

        </table>
        <br/>
        <table class="no_border_bg">
            <tr>
                <td style="height: 147px">
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="6" >
                                <script language="javascript">
                                                (new TitleBar('SearchBar1', '系统人员信息')).showBar();
                                </script>
                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width:90px">&nbsp;</td>
                            <td style="width:120px; white-space:nowrap" align="left">系统人员编号</td>	
                            <td align="left" nowrap>
                                <asp:TextBox ID="txtSysUserId" runat="server" ReadOnly="True" Width="150px"></asp:TextBox>
                                &nbsp;<span class="notice">*</span>
                            </td> 
                            <td colspan="3" align="left">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:90px">&nbsp;</td>
                            <td style="width:120px; white-space:nowrap" align="left">系统人员名称</td>	
                            <td align="left" nowrap>
                                <asp:TextBox ID="txtSysUserName" runat="server" ReadOnly="True" Width="150px"></asp:TextBox>
                                &nbsp;&nbsp;<span class="notice"></span>
                            </td> 
                            <td colspan="3" align="left">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:90px; height: 26px;">&nbsp;</td>
                            <td style="width:120px; white-space:nowrap; height: 26px;" align="left">密码</td>	
                            <td align="left" nowrap style="height: 26px">
                                <asp:TextBox ID="txtPassWd" runat="server" TextMode="Password" Width="150px" MaxLength="16" ></asp:TextBox>
                                &nbsp;<span class="notice">*</span>&nbsp;
                            </td> 
                            <td colspan="3" align="left" style="height: 26px">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:90px; height: 26px;">&nbsp;</td>
                            <td style="width:120px; white-space:nowrap; height: 26px;" align="left">确认密码</td>	
                            <td align="left" nowrap style="height: 26px">
                                <asp:TextBox ID="txtConfirmPassWd" runat="server" TextMode="Password" Width="150px" MaxLength="16"></asp:TextBox>
                                &nbsp;<span class="notice">*</span>
                            </td> 
                            <td colspan="3" align="left" style="height: 26px">&nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table> 
        <br/>
        <table width="60%">
            <tr>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnAdd" runat="server" Text="登录" styleClass="button1" Height="21px" Width="90px" OnClick="btnAdd_Click" OnClientClick="return addmessage();" CssClass="button"/></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnDel" runat="server" Text="删除" styleClass="button1" Height="21px" Width="90px" OnClick="btnDel_Click" OnClientClick="return delmessage();" CssClass="button"/></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnCancel" runat="server" Text="取消输入" styleClass="button1" Height="21px" Width="90px" OnClick="btnCancel_Click" CssClass="button"/></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnExit" runat="server" Text="返回" styleClass="button1" Height="21px" Width="90px" CssClass="button"/></td>
            </tr>
        </table>
        <table class="no_border_bg">
            <tr>
                <td style="height: 110px">
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="6" >
                                <script language="javascript">
                                                (new TitleBar('SearchBar2', '系统人员权限')).showBar();
                                </script>
                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width:90px">&nbsp;</td>
                            <td style="width:120px" align="left" nowrap>系统人员编号</td>
                            <td width="52%" align="left" nowrap height="22">
                                <asp:Label ID="lblSysUserId" runat="server" ></asp:Label>
                            </td> 
                            <td align="right">&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="4">
                                <table width="90%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="50%" nowrap>可赋予的权限:</td>
                                        <td style="width: 68px"><br/></td>
                                        <td width="50%" nowrap>已赋予的权限:</td>
                                    </tr>
                                    <tr>    
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstSetPermission" runat="server" Height="150px" Width="100%"  SelectionMode="Multiple" ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td> 
                                        <td align="center" style="padding-left:5px;padding-right:5px; height: 15px;">
                                            <asp:Button ID="btnPermissionAdd" runat="server" Text="添加权限-->" styleClass="button1" Height="21px" OnClick="btnPermissionAdd_Click" CssClass="button"/><br />
                                            <br />
                                            <asp:Button ID="btnPermissionCancel" runat="server" Height="21px" Text="重置权限  " OnClick="btnPermissionCancel_Click" CssClass="button" /><br />
                                            <br />
                                            <asp:Button ID="btnPermissionDel" runat="server" Text="<--消除权限" styleClass="button1" Height="21px" OnClick="btnPermissionDel_Click" CssClass="button"/></td> 
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstGetPermission" runat="server" Height="150px" Width="100%" SelectionMode="Multiple" ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td> 
                                    </tr>
                                </table> 按Ctrl可以取消选择</td>
                        </tr>
                        <tr>
                            <td colspan="4"> <br/> </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table> 
        <table class="no_border_bg">
            <tr>
                <td>
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="4" >
                                <script language="javascript">
                                                (new TitleBar('SearchBar3', '系统人员部门')).showBar();
                                </script>
                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width:90px">&nbsp;</td>
                            <td style="width:120px" align="left" nowrap>系统人员编号</td>
                            <td width="52%" align="left" nowrap height="22">
                                <asp:Label ID="lblGroupSysUserId" runat="server" ></asp:Label>
                            </td> 
                            <td align="right">&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="4">
                                <table width="90%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="50%" nowrap>可隶属的部门:</td>
                                        <td style="width: 68px"><br/></td>
                                        <td width="50%" nowrap>已隶属的部门:</td>
                                    </tr>
                                    <tr>    
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstSetGroup" runat="server" Height="150px" Width="100%" SelectionMode="Multiple" ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td> 
                                        <td align="center" style="padding-left:5px;padding-right:5px; height: 15px;">
                                            <asp:Button ID="btnGroupAdd" runat="server" Text="添加部门-->" styleClass="button1" Height="21px" OnClick="btnGroupAdd_Click" CssClass="button" /><br />
                                            <br />
                                            <asp:Button ID="btnGroupDel" runat="server" Text="<--消除部门" styleClass="button1" Height="21px" OnClick="btnGroupDel_Click" CssClass="button"/></td> 
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstGetGroup" runat="server" Height="150px" Width="100%" SelectionMode="Multiple" ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td> 
                                    </tr>
                                </table> 按Ctrl可以取消选择</td>
                        </tr>
                        <tr>
		  	                <td colspan="4"><br/></td>
		                </tr>

                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
